from  MySqlConn import Mysql


class DayEnglihsSql(object):
    # 开始id
    startId=-1
    # 结束id
    endId=-1


    def __init__(self,_startId,_endId):
        # 数据库构造函数，从连接池中取出连接，并生成操作游标
        self.startId = _startId
        self.endId = _endId

        # 查询出数学科目、北京师范大学出版社、七年级下册的主章节表

    def getAllKouYuChapter(self):
        mysql = Mysql()
        strText = "select id,title,fileid,content_url,cover,source_url,publishtime,digest from chapter  where title like '%教口语%' and id>632"
        result = mysql.getAll(strText);
        return result;
